<?php /* Smarty version Smarty-3.1.8, created on 2012-06-08 16:56:31
         compiled from ".\templates\templateAccueil.tpl" */ ?>
<?php /*%%SmartyHeaderCode:241274faa3830c588f4-08373974%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a1516304a62d99ad6a6592be0a574ba3a3d33d31' => 
    array (
      0 => '.\\templates\\templateAccueil.tpl',
      1 => 1339167386,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '241274faa3830c588f4-08373974',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4faa3830cf5144_24912767',
  'variables' => 
  array (
    'id' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4faa3830cf5144_24912767')) {function content_4faa3830cf5144_24912767($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<script>
var formAuth;
var formRecherche;
function doOnLoad() {
	/**configuration du formulaire d'authentification**/
	formAuth = new dhtmlXForm("authentification");
	formAuth.loadStruct("./XML/XMLAuthentification.php");
	formAuth.attachEvent("onButtonClick", function(name, command) {
		if (name == "seDeconnecter"){
			formAuth.send('../metier/seDeconnecter.php', function(loader) {
				reponse = loader.xmlDoc.responseText;
				alert(reponse);
				document.location.href="afficheAccueil.php";
			});
		}
		if (name == "seConnecter"){
			formAuth.send('../metier/seConnecter.php', function(loader) {
				reponse = loader.xmlDoc.responseText;
				if (reponse != null && reponse != ""){
					alert(reponse);
				} else {
					document.location.href="afficheAccueil.php";
				}
					
			});
		}
    });

	/**configuration du formulaire de recherche**/
	formRecherche = new dhtmlXForm("recherche");
	formRecherche.loadStruct("./XML/XMLRecherche.php");
	formRecherche.attachEvent("onButtonClick", function(name, command) {
		if (name == "rechercher"){
			if(formRecherche.validate()){
	            document.forms["formRecherche"].submit();
			}
		}
    });

	/**configuration du formulaire ACPA**/
	formRecherche = new dhtmlXForm("gestionAcpa");
	formRecherche.loadStruct("./XML/XMLGestionACPA.php");

}
</script>
<table>
	<tr>
		<td>
			<div id="authentification"></div>
		</td>
		<td colspan ="3">
			<div id="presentation" class="panel">
			<H1>Présentation</H1>
			Cette base de donnée à pour objectif de répertorier les variation en
			nombre de copie (CNV) des analyses sur puces à ADN consitutielles
			réalisées sur le réseau AchroPuce.
			</div>
		</td>
	</tr>
	<tr>
		<?php if (isset($_smarty_tpl->tpl_vars['id']->value)&&!is_null($_smarty_tpl->tpl_vars['id']->value)&&$_smarty_tpl->tpl_vars['id']->value!=0){?>
			<td colspan="2" >
		<?php }else{ ?>
			<td colspan="4" >
		<?php }?>
			<form action="../metier/rechercher.php" method="post" id="formRecherche">
    			<div id="recherche" class="panel">
					<H1>Rechercher</H1>
				</div>
			</form>
			
		</td>
		<?php if (isset($_smarty_tpl->tpl_vars['id']->value)&&!is_null($_smarty_tpl->tpl_vars['id']->value)&&$_smarty_tpl->tpl_vars['id']->value!=0){?>
			<td colspan="2">
					<div id="gestionAcpa" class="panel">
						<H1>Gestion des analyses de votre centre</H1>
					</div>

			</td>
			<tr/>
		<?php }?>
	</tr>

</table><?php }} ?>